namespace IAM.Interface.Model
{
    using IAM.Interface.Common.Encrypt;
    using IAM.Interface.Common.Providers;
    using System;

    public class TransmissionParameter
    {
        private string _appname = "";
        private string _key = "";
        private string _personnelindex = "";
        private IAM.Interface.Common.Providers.ProviderEnum _providerenum = IAM.Interface.Common.Providers.ProviderEnum.Http;
        private string _url = "";

        public string AppName
        {
            get
            {
                return this._appname;
            }
            set
            {
                this._appname = value;
            }
        }

        public string Key
        {
            get
            {
                return this._key;
            }
            set
            {
                string encrypt = value;
                EncryptDecrypt ed = new EncryptDecrypt();
                ed.Key = ed.GenerateKey();
                this._key = ed.Decrypt(encrypt);
            }
        }

        public string PersonnelIndex
        {
            get
            {
                return this._personnelindex;
            }
            set
            {
                this._personnelindex = value;
            }
        }

        public IAM.Interface.Common.Providers.ProviderEnum ProviderEnum
        {
            get
            {
                return this._providerenum;
            }
            set
            {
                this._providerenum = value;
            }
        }

        public string URL
        {
            get
            {
                return this._url;
            }
            set
            {
                this._url = value;
            }
        }
    }
}
